var express = require('express');
var router = express.Router();

// 引入封装的 mysql模块
const mysql = require('../util/mysql/mysql');
const sql = require('../util/mysql/sql');

router.post('/l', function (req, res, next) {
    mysql.blog(sql.register, [req.body.user,req.body.pass,req.body.code], function(err, rows, fields) {
        if (err) return;
        res.send(JSON.stringify({msg:'注册成功！'}));
      });
});
module.exports = router;